package com.lebang.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Objects;

import lombok.Data;

/**
 * email_sdkerror_send_record
 * @author 
 */
@Data
@ApiModel("")
public class EmailSdkerrorSendRecord implements Serializable {
    /**
     * id
     */
    @ApiModelProperty("id")
    private Integer id;

    /**
     * 创建时间
     */
    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    /**
     * 记录日期
     */
    @ApiModelProperty("记录日期")
    private Integer time;

    /**
     * 数据源
     */
    @ApiModelProperty("数据源")
    private String sdkKey;

    /**
     * 错误码
     */
    @ApiModelProperty("错误码")
    private String errorCode;

    private String errorMessage;

    /**
     * 错误数
     */
    @ApiModelProperty("错误数")
    private Integer errorCount;

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        EmailSdkerrorSendRecord record = (EmailSdkerrorSendRecord) o;
        return Objects.equals(sdkKey, record.sdkKey) &&
                Objects.equals(errorCode, record.errorCode);
    }

    private static final long serialVersionUID = 1L;
}